package com.wybx.serivce.impl;

import com.wybx.mapper.XszcMapper;
import com.wybx.pojo.Student;
import com.wybx.serivce.XszcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;


@Service
public class XszcServiceImpl implements XszcService {
    @Autowired
    private XszcMapper xszcMapper;

    @Override
    public Student getNameList(int id) {
        Student student = xszcMapper.getNameList(id);
        if(student != null){
            student.setXM("<p class=\"student\"><strong style='font-size: 100px;margin-left: 30px;'>"+student.getXM()+"</strong>  同学</p>");
            student.setWelcome("恭喜你第"+student.getId()+"个完成报到");
        }
        return student;
    }

    @Override
    public Integer getRegisterMaxId() {
        return xszcMapper.getRegisterMaxId();
    }
}
